package com.yuyou.tas.lesson.api;

import com.yuyou.tas.lesson.service.IBaseChapterService;
import com.yuyou.tas.service.api.lesson.entity.BaseChapter;
import com.yuyou.tas.service.api.lesson.service.BaseChapterAPI;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RestController;

@RestController
public class BaseChapterAPIImpl implements BaseChapterAPI{

	@Autowired
	private IBaseChapterService baseChapterService;
	
	@Override
	public BaseChapter selectByLectureUrl(String lectureUrl) {
		return baseChapterService.selectByLectureUrl(lectureUrl);
	}

	@Override
	public BaseChapter selectByCourseUrl(String courseUrl) {
		return baseChapterService.selectByCourseUrl(courseUrl);
	}

	@Override
	public BaseChapter selectByCla7LectureUrl(Long lessonClassId, String lectureUrl) {
		return baseChapterService.selectByCla7LectureUrl(lessonClassId, lectureUrl);
	}

	@Override
	public BaseChapter selectByCla7CourseUrl(Long lessonClassId, String courseUrl) {
		return baseChapterService.selectByCla7CourseUrl(lessonClassId, courseUrl);
	}

}
